import Layout from "@/layout";
import SubLayout from "@/layout/subLayout.vue";

const accountRouter = {
    path: "/account",
    component: Layout,
    redirect: "noRedirect",
    name: "Account",
    meta: { title: "账号管理", icon: "menu_user" },
    children: [
        {
            path: "user",
            component: () => import("@/views/account/user/list.vue"),
            name: "UserList",
            meta: { title: "账号列表", icon: "menu_user" }
        },
        {
            path: "role",
            component: () => import("@/views/account/role/list.vue"),
            name: "RoleList",
            meta: { title: "角色列表", icon: "menu_role" }
        }
    ]
};

export default accountRouter;